package com.my.android;

import java.util.ArrayList;
import java.util.List;

import android.app.ListActivity;
import android.os.Bundle;

public class AndroidListViewTestActivity extends ListActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        List<BindData> list = new ArrayList<BindData>();
        // ここにlistに項目を追加する処理が入る
        list.add(new BindData("タイトル１", null , null));
        list.add(new BindData(null, "line1-1" ,"line1-2"));
  

        list.add(new BindData("タイトル2", null , null));
        list.add(new BindData(null, "line2-1" ,"line2-2"));
        list.add(new BindData(null, "line2-12" ,"line2-22"));

        MyAdapter adapter = new MyAdapter(this, list);
        setListAdapter(adapter);
    }
}